package Parser;

import java.io.File;

public class MetricsResolve {
	
	public static void main(String[] args){
		System.out.println("MetricsResolve start.");
//		File outFile = new File("score-auto-summary.txt");
//		if(outFile.exists()) outFile.delete();
		String currentDirName = System.getProperty("user.dir") + "\\";
//		File directory = new File(".");
//		directory.getCanonicalPath(); 
		String inFileName = null;
		if (0 == args.length) {
			inFileName = currentDirName;
		} else {
			inFileName = currentDirName + args[0];
		}
		
		MetricsResolver.resolveDir(inFileName, currentDirName + "score-auto-summary.txt","gbk");
		MetricsResolver.resolveDirEx(inFileName, currentDirName + "score-auto-summary-extend.txt","gbk");
		
		System.out.println("MetricsResolve has succeeded.");
	}
}
